<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{$t['title']} - {:set('title')} </title>
	<meta name="keywords" content="{$t['keywords']}">
	<meta name="description" content="{$t['description']}">
    {include file="header"}
    <link rel="stylesheet" href="*ADMIN*/wangEditor/css/wangEditor.min.css">
    <script type="text/javascript" src="*ADMIN*/wangEditor/js/wangEditor.min.js"></script>
    <div class="content-box">
        <div class="content">
            <div class="label-nav-box">	
                <a href="/">首页</a>&gt;	
                <a href="{:url('index/model/index',array('model'=>$t.m))}">{:fun_model($t.m, 'title')}</a>&gt;	
                <a href="{:url('index/model/cate',array('alias'=>$cate.alias))}">{:fun_cate_m($t.tid, 'name')}</a>&gt;	
                <a href="" class="tiezi-title-label">详情</a>
            </div>
            <div class="tiezi-title" style="position: relative; top: 0px;">
                <h3 class="title"><i></i><span>{$t['title']}</span></h3>
                <div class="btn-group">
                    <a href="javascript:;" class="store-btn">
                        <button><i class="iconfont">&#xe614;</i><span>{$t['view']}</span>
                        </button>
                    </a>
                    <a href="javascript:;" class="store-btn">
                        <button><i class="iconfont">&#xe60f;</i><span class="shoucang" url="{:url('index/api/shoucang',array('id'=>$t.id,'m'=>$t.m))}">{if fun_st('shoucang',array('m'=>$t.m,'tid'=>$t.id,'uid'=>user('userid')))>0}收藏成功{else/}收藏{/if}</span>
                        </button>
                    </a>
                    <a class="comment-btn" href="#pinglun">
                        <button><i class="iconfont">&#xe61e;</i>评论 {:fun_st('comment',array('open'=>1,'m'=>$t.m,'fid'=>$t['id']))}</button>
                    </a>
                </div>
            </div>
            <div class="left-content left-content-html">
                <div class="floor-box floor-top">
                    <div class="floorer-info-box">
                        <dl class="floorer-info">	
                            <dt class="floorer_headicon">
                                <div class="head_icon">
                                    <div class="headimg-circ">
                                        <a target="_blank" href="{:url('index/user/uid',array('id'=>$t.uid))}">
                                            <img src="{:fun_u($t.uid, 'userhead')}">
                                        </a>
                                    </div>
                                    <i class="top_icon"></i>
                                </div>
                                <div class="floorer_name">
                                    <a target="_blank" href="{:url('index/user/uid',array('id'=>$t.uid))}">{:fun_u($t.uid, 'username')}</a>
                                </div>
                            </dt>
                            <dd class="floorer t_num">	<i class="iconfont">&#xe6a8;</i>
                                <span>帖子：{:fun_st($t.m, array('uid'=>$t.uid))}</span>
                            </dd>
                            <dd class="floorer t_num">	<i class="iconfont">&#xe61e;</i>
                                <span>评论：{:fun_st('comment', array('uid' => $t.uid))}</span>
                            </dd>
                            <dd class="floorer t_good">	<i class="iconfont">&#xe605;</i>
                                <span>{:set('jifen',2)}：{:fun_u($t.uid, 'point')}</span>
                            </dd>
                            <dd class="floorer r_time">	<i class="iconfont">&#xe612;</i>
                                <span>注册时间：{:times(fun_u($t.uid, 'regtime'))}</span>
                            </dd>
                            <dd class="attion fn-clear"><a target="_blank" href="{:url('index/user/uid',array('id'=>$t.uid))}"><i class="iconfont">&#xe697;</i> 主页 </a>
                            </dd>
                        </dl>
                    </div>
                    <div class="floor-content">
                        <div class="floor-info-box">
                            <div class="floor-info">
                                <p class="floor-time"><span>{$t.time|times}</span>
                                </p>
                                <ul>
                                    <li class="ping_btn"><a href="#pinglun"><i></i><span>评论 {:fun_st('comment',array('open'=>1,'m'=>$t.m,'fid'=>$t['id']))}</span></a></li>
                                    <li class="zan_btn"> <a href="javascript:;" class="dianzan" zan="{$t['zan']+1}" url="{:url('index/api/zan',array('id'=>$t.id,'m'=>$t.m))}"><i></i>点赞(<span class="dianzans">{$t['zan']}</span>)</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="F_content">
                            <div class="F_title">
                                <h3>{$t['title']}</h3>
                                <div class="QRcode">
                                    <div class="qr_btn"></div>
                                    <div class="qr_img " id="qrcode">
                                        <canvas width="74" height="74"></canvas>
                                    </div>
                                </div>
                            </div>
                            <div class="content_p">
                                <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
                    		        <div class="wangEditor-txt" style="padding: 0;">
                                        {if $fufei==1}
                                        <a href="javascript:;" class="del_t fufei" name="确定要付费{$t['jifen']}{:set('jifen',2)}查看该内容吗？下次无需付费" url="{:url('index/api/fufei',array('id'=>$t.id,'m'=>$t.m))}"><i class="iconfont">&#xe605;</i> 付费{$t['jifen']}{:set('jifen',2)}查看隐藏内容</a>
                                        {else/}
                                        {$t.content}
                                        {/if}
                                    </div>
                                </div>
                            </div>
                            {if fun_st('point_note',array('tid'=>$t.id,'title'=>'付费阅读'.$t.m))}
                            <dl class="zan_headicon mylabel" style="display: block;"> 
                                {volist name=":fun_s('point_note',array('tid'=>$t.id,'title'=>'付费阅读'.$t.m),'id desc',10,1)" id="vo"}
                                <dd id="photo21581">
                                    <img src="{:fun_u($vo.uid, 'userhead')}" title="{:fun_u($vo.uid, 'username')}于 {$vo.time|times} 付费查看">
                                </dd>
                                {/volist}
                                <dd class="label-zan">
                                    <p><i class="iconfont">&#xe605;</i>已有 {:fun_st('point_note',array('tid'=>$t.id,'title'=>'付费阅读'.$t.m))} 人付费</p>
                                </dd>
                            </dl>
                            {/if}
                        </div>
                    </div>
                </div>
                {volist name=":fun_s('comment',array('tid'=>0,'open'=>1,'fid'=>$t.id,'m'=>$t.m),'id desc',10,0)" id="vo"}
                <div class="floor-box floor-members">
                    <div class="floorer-info-box">
                        <dl class="floorer-info">	
                            <dt class="floorer_headicon">
                                <div class="head_icon">
                                    <div class="headimg-circ">
                                        <a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.uid))}">
                                            <img src="{:fun_u($vo.uid, 'userhead')}">
                                        </a>
                                    </div>
                                </div>
                                <div class="floorer_name">
                                    <a target="_blank" href="{:url('index/user/uid',array('id'=>$vo.uid))}">{:fun_u($vo.uid, 'username')}</a>
                                </div>
                            </dt>
                            <dd class="floorer t_num">	<i class="iconfont">&#xe6a8;</i>
                                <span>帖子：{:fun_st($t.m, array('uid'=>$vo.uid))}</span>
                            </dd>
                            <dd class="floorer t_num">	<i class="iconfont">&#xe61e;</i>
                                <span>评论：{:fun_st('comment', array('uid' => $vo.uid))}</span>
                            </dd>
                            <dd class="floorer t_good">	<i class="iconfont">&#xe605;</i>
                                <span>{:set('jifen',2)}：{:fun_u($vo.uid, 'point')}</span>
                            </dd>
                            <dd class="floorer r_time">	<i class="iconfont">&#xe612;</i>
                                <span>注册时间：{:times(fun_u($vo.uid, 'regtime'))}</span>
                            </dd>
               
                        </dl>
                    </div>
                    <div class="floor-content">
                        <div class="floor-info-box">
                            <div class="floor-info">
                                <p class="floor-time"><span>{$vo.time|times}</span>
                                </p>
                                <ul>
                                    <li class="ping_btn huifu" data="{:url('index/api/comment_add',array('id'=>$t.id,'tid'=>$vo.id,'m'=>$t.m))}" href="javascript:;" name="@{:fun_u($vo.uid, 'username')}">
                                        <a href="javascript:;"><i></i><span>回复</span> </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="F_content">
                            <div class="content_p">
                                <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
                    		        <div class="wangEditor-txt" style="padding: 0;">
                                        {$vo.content|htmlspecialchars_decode}
                                    </div>
                                </div>
                            </div>
                            <div class="fn-clear"></div>
                            {volist name=":fun_s('comment',array('open'=>1,'tid'=>$vo.id,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="v"}
                            <div class="reply-text-box">
                                <ul>
                                    <li>
                                        <div class="head_img">
                                            <img src="{:fun_u($v.uid, 'userhead')}">
                                        </div>
                                        <div class="reply-text">
                                            <div class="reply-info">
                                                <p class="reply-user"><a target="_blank" href="{:url('index/user/uid',array('id'=>$v.uid))}">{:fun_u($v.uid, 'username')}</a></p>
                                                <p class="reply_time">{$v.time|times}</p>
                                            </div>
                                            <div class="reply-p">{$v.content|htmlspecialchars_decode}</div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            {/volist}
                        </div>
                    </div>
                </div>
                {/volist}
                {if fun_st('comment',array('open'=>1,'tid'=>0,'m'=>$t.m,'fid'=>$t['id']))>10}
                <div class="pagination">
                    {:fun_s('comment',array('tid'=>0,'open'=>1,'fid'=>$t.id,'m'=>$t.m),'id desc',10,0)->render()}
                </div>
                {/if}
                <!--评论框-->
                {if !user('userid')}
                <div class="floor_in-box" id="pinglun">
                    <div class="content-box">
                        <div class="editor-box-all">
                            <div class="login yemianf" w="1000px" h="800px" anim="0" url="{:url('index/user/login')}"><a href="javascript:;" id="login">请先登录 即可进行评论</a>
                            </div>
                        </div>
                    </div>
                </div>
                {else/}
                <div class="floor_in-box" id="pinglun">
                    <form class="layui-form layui-form-pane form1" url="{:url('index/api/comment_add')}" t_url="javascript:parent.location.reload();" id="commentform">
                        <input type="hidden" name="id" value="{$t.id}">
                        <input type="hidden" name="m" value="{$t.m}">
                        <input type="hidden" name="tid" value="0">
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12">
                                <div class="form-group">
                                    <textarea id="textarea" name="content" class="form-control" cols="80" rows="10" placeholder="说出您的看法...."></textarea>
                                </div>
                            </div>
                            <a href="javascript:;" lay-submit lay-filter="cms1" class="layui-btn"><i class="iconfont">&#xe71f;</i> 评 论 </a>
                        </div>
                    </form>
                </div>
                <script>
                    var editor = new wangEditor('textarea');
                    	editor.config.uploadImgUrl = "{:url('admin/up/pic')}";
                    	editor.config.uploadImgFileName = 'FileName';
                        editor.config.jsFilter = false;
                        editor.config.pasteFilter = false;
                        editor.config.menus =  [
                            'bold',
                            'eraser',
                            'forecolor',
                            'quote',
                            'fontsize',
                            '|',
                            'alignleft',
                            'aligncenter',
                            'alignright',
                            'link',
                            'unlink',
                            'img',
                            'insertcode',
                        ];
                    editor.create();
                </script>
                {/if}
            </div>
            <!--右侧-->
            <div class="right-content right-content-html">
                <dl class="recent_tiezi">	
                    <dt><h3 class="right_title">最近发布</h3></dt>
                    {volist name=":fun_s($t.m,array('open'=>1,'uid'=>$t.uid),'id desc',8,0)" id="vo"}
                    <dd>
                        <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank">
                            <h3><s>•</s>{$vo.title}</h3>
                            <p><span>{$vo.time|times}</span>
                            </p>
                        </a>
                    </dd>
                    {/volist}
                </dl>
                <div class="all_read">
                    <div class="all_read_title">
                        <h3 class="right_title">大家都在看</h3>
                    </div>
                    <div class="news_list_box">
                        <ul class="news_list">
                            {volist name=":fun_sj($t.m,array('open'=>1),5)" id="vo"}
                            <li>
                                <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank"><s>•</s>{$vo.title}</a>
                            </li>
                            {/volist}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="kong"></div>
        </div>
    </div>
    {include file="footer"}